/*****************************************************************************
 * ui_sys_quick_win.h: Copyright 2023 (c) CoreLink
 * Desc:
 *
 * Author: Flying (weekend@111.com)
 * Date: 2023-09-07 17:56:23
 * Notes:
 *
 * ---------------------------------------------------------------------------
 * LastEditors:
 * LastEditTime:
 *****************************************************************************/
#ifndef UI_SYS_QUICK_WIN_H_
#define UI_SYS_QUICK_WIN_H_

#ifdef __cplusplus
extern "C"
{
#endif
    /*------------------------------- Includes ----------------------------------*/
#include "my_conf.h"
#include "lvgl.h"
    /*----------------------------- 全局定义 ------------------------------*/
    typedef lv_obj_t *(*sys_quick_func_t)(lv_obj_t *);

    typedef struct ui_sys_quick_win_info_t_
    {
        bool is_show;
        int start_x;
        int start_y;
        int end_x;
        int end_y;
        int w;
        int h;
        lv_obj_t *cont;
        lv_obj_t *win;
    } ui_sys_quick_win_info_t;
    /*----------------------------- 全局类型 -----------------------------*/

    /*----------------------------- 全局外部变量 --------------------------*/

    /*------------------------ 全局函数原型 -----------------------*/

    ui_sys_quick_win_info_t *ui_sys_quick_win_create(int start_x, int start_y, sys_quick_func_t func);
    // int ui_sys_quick_win_show(ui_sys_quick_win_info_t *info);
    int ui_sys_quick_win_delete(ui_sys_quick_win_info_t *info);

#ifdef __cplusplus
}
#endif
#endif // UI_SYS_QUICK_WIN_H_
